

<?php echo $this->Section->main(); ?>

<body>
<div class="main">
  <div class="header_resize">
    <div class="header">
     <div class="logo"><a href="/"><img src="/img/web.artdent.soltys/logo.gif" width="242" height="95" border="0" alt="logo" /></a></div>
      <div class="menu">
        <?php echo $this->element('menu-top')?>
      </div>
      <div class="clr"></div>
    </div>
  </div>
  <div class="clr"></div>
  <div class="header_text_bg2">
    <div class="header_text2">
      <h2>Galeria</h2>
      <div class="clr"></div>
    </div>
  </div>
  <div class="clr"></div>
  <div class="body">
    <div class="body_small">
      <h2>Galerie<span> Art-Dent</span></h2>
      <p>&nbsp;</p>
      <?php echo $this->element('menu-right-gallery',array('plugin' => false,'categories'=>$this->Gallery->categories()))?>
      <?php ?>
      <p>&nbsp;</p>

    </div>
    <div class="body_big"> 
    	<?php
    		//pobranie indeksu kategorii 
    		$category = (isset($this->params['named']['g'])) ? $this->params['named']['g'] : null;    		
    		$aCategory = $this->Gallery->category($category);
    	?>
    	
    	<h2><?php echo $aCategory['GalleryCategory']['name']?></h2>
		<?php 
		
		
		echo $this->element('gallery',array('plugin' => false,
		'items'=>$this->Gallery->index($aCategory['GalleryCategory']['id'])
		,'category_id'=>$aCategory['GalleryCategory']['id']
		,'params'=>array('width'=>125,'height'=>100,'padding'=>5,'margin'=>5,'border'=>0,'i'=>null)
		));?>

	      <p>&nbsp;</p>

    </div>
    <div class="clr"></div>
  </div>
  <div class="clr"></div>
</div>
<div class="clr"></div>
<div class="footer">
  <div class="footer_resize">
    <ul>
	    <?php 
	    echo '<li>'.$this->element('sign').'</li>';
	    echo '<li>'.$html->link(__d(HOST,'Strona glówna', true), '/').'</li>'; 
	    echo '<li>'.$this->element('logout').'</li>';
	    ?>
        </ul>
    <p>Copyright ©  <a href="http://www.21w.pl/">21w.pl</a>. All Rights Reserved</p>
    <div class="clr"></div>
  </div>
</div>
<div class="clr"></div>
</body>
</html>